package com.yxy.model;



import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;
import tk.mybatis.mapper.code.ORDER;

import java.util.Date;
import java.math.BigDecimal;
import java.util.List;

import javax.persistence.*;


@Data
@Entity
@Table(name = "table_reimbursement",schema = "")
public class TableReimbursement {

  //null
  @Id
  @KeySql(useGeneratedKeys = true,sql = "SELECT @@IDENTITY",order = ORDER.AFTER)
  @Column(name = "id")
  private Long id;

  //报销人
  @Column(name = "user_name")
  private String userName;

  //报销人员工号
  @Column(name = "user_code")
  private String userCode;

  //报销人所属部门
  @Column(name = "department_name")
  private String departmentName;

  //报销总金额
  @Column(name = "money")
  private BigDecimal money;

  //报销编号
  @Column(name = "code")
  private String code;

  //报销项目
  @Column(name = "pro_name")
  private String proName;

  //null
  @Column(name = "create_date")
  private Date createDate;

  //null
  @Column(name = "create_user_id")
  private Long createUserId;

  //null
  @Column(name = "create_user_name")
  private String createUserName;

  //null
  @Column(name = "update_date")
  private Date updateDate;

  //null
  @Column(name = "update_user_id")
  private Long updateUserId;

  //null
  @Column(name = "update_user_name")
  private String updateUserName;

  //null
  @Column(name = "tenant_id")
  private Long tenantId;

  //报销月份
  @Column(name = "month")
  private String month;

  //0 未处理 1 已审批 2. 审批不通过
  @Column(name = "status")
  private Long status;

  //审批人
  @Column(name = "check_man")
  private String checkMan;


  @Transient  //报销明细
  private List<TableReimbursementDetail> tableReimbursementDetailList;


}
